<?php
include_once '../samepart/header.php';
?>
<title>No.2商城-订单删除成功</title>
<div class="container" style="height:100%;">
    <div class="row" style="width: 30%;margin: 0 auto;padding-top: 100px;">
        <div class="panel panel-success">
            <div class="panel-heading">
                <h3 class="panel-title">订单删除成功提示</h3>
            </div>
            <div class="panel-body">
                <h3 class="text-default">
                    <span class="glyphicon glyphicon-ok-sign"></span>
                    &nbsp;&nbsp;&nbsp;&nbsp;订单删除成功!</h3>
                <hr/>
                <a id="showCart" href="orderList.php" class="btn btn-primary">查看订单</a>&nbsp;&nbsp;&nbsp;&nbsp;
            </div>
        </div>
    </div>
</div>

<?php include_once '../samepart/footer.php' ?>

<script>
    $(function(){
        $.ajax({
            // async: false,//取消异步执行，为同步执行。进而被其他方法调用
            url: "http://localhost:80/phalapi/public/index.php?s=App.Order.deleteOrderInfoByOid",
            type: "POST",
            contentType: "application/json;charset=utf-8",
            data: JSON.stringify({
                'order_id': '<?php echo $_GET['actionDelOrderId'] ?>',
            }),
            dataType: "JSON",
            success: function (result) {
                // alert("删除成功");
            },
            error: function (msg) {
                alert("错误信息：" + msg);
            }
        })
    })
</script>
